﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ywxt.Common;

namespace DB_NH.DB_Model.PWF
{
    /// <summary>
    /// 评委费记录详细记录
    /// </summary>
    public class wf_pwf_detail
    {
         #region 数据表名称
        public static readonly string TableName = "wf_pwf_detail";
        #endregion

        #region 数据表字段结构
        public struct Columns
        {
            /// <summary>
            /// 记录ID
            /// </summary>
            public static readonly string r_id = @"r_id";

            /// <summary>
            /// 所属评委费记录ID
            /// </summary>
            public static readonly string n_id = @"n_id";

            /// <summary>
            /// 序号
            /// </summary>
            public static readonly string order_flag = @"order_flag";

            /// <summary>
            /// 评委姓名
            /// </summary>
            public static readonly string pwxm = @"pwxm";

            /// <summary>
            /// 评委单位
            /// </summary>
            public static readonly string pwdw = @"pwdw";

            /// <summary>
            /// 评委联系方式
            /// </summary>
            public static readonly string pwlxfs = @"pwlxfs";

            /// <summary>
            /// 金额
            /// </summary>
            public static readonly string pwfje = @"pwfje";

            /// <summary>
            /// 评委类型
            /// </summary>
            public static readonly string pwlx = @"pwlx";

            /// <summary>
            /// 记录是否有效
            /// </summary>
            public static readonly string is_valid = @"is_valid";

            /// <summary>
            /// 记录创建时间
            /// </summary>
            public static readonly string create_date = @"create_date";
        }
        #endregion

        #region 字段

        /// <summary>
        /// 记录ID
        /// </summary>
        public virtual string r_id { get; set; }

        /// <summary>
        /// 所属评委费记录
        /// </summary>
        public virtual wf_pwf this_wf_pwf { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        public virtual int order_flag { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public virtual string pwxm { get; set; }

        /// <summary>
        /// 评委单位
        /// </summary>
        public virtual string pwdw { get; set; }

        /// <summary>
        /// 评委联系方式
        /// </summary>
        public virtual string pwlxfs { get; set; }

        /// <summary>
        /// 金额
        /// </summary>
        public virtual decimal pwfje { get; set; }

        /// <summary>
        /// 评委类型：专家，业主
        /// </summary>
        public virtual string pwlx { get; set; }

        /// <summary>
        /// 记录是否有效
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        /// 记录创建时间
        /// </summary>
        public virtual DateTime create_date { get; set; }
        #endregion

        public wf_pwf_detail()
        {
            r_id = Common.NewID();
            is_valid = 1;
            create_date = DateTime.Now;

            this_wf_pwf = new wf_pwf();
        }
    }
}
